package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.domain.RefundVo;
import cn.wolfcode.feign.fallback.IntergralFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "intergral-service", fallback = IntergralFeignFallback.class)
public interface IntergralFeignApi {
    @RequestMapping("/intergral/decrIntegral")
    Result decrIntegral(@RequestBody OperateIntergralVo vo);
    @RequestMapping("/intergral/addIntegral")
    Result addIntegral(@RequestBody OperateIntergralVo vo);
}
